<?
    Principio_Library_Common::printErrorsAndMsg($this);

    switch ($this->level)
    {
        case 1:  // Список settings
            echo "<ul>".$this->partial("menu/partial.settings.phtml", array("p_settings" => $this->p_settings, "s_settings" => $this->s_settings))."</ul>";
            break;

        case 2: // Firmwares
            echo $this->partial("menu/partial.firmwares.phtml", array("firmwares" => $this->firmwares));
            break;

        case 3: // Expand to firmware
            echo "<ul>";

            echo $this->partial("menu/partial.settings.phtml", array("p_settings" => $this->p_settings, "s_settings" => $this->s_settings, "expand_settings_id" => 4,
                                                                     "expand" => $this->partial("menu/partial.firmwares.phtml", array("firmwares" => $this->firmwares))));

            echo "</ul>";
            break;

        case 4: // Dictionaries
            echo $this->partial("menu/partial.dictionaries.phtml", array("dictionaries" => $this->dictionaries));
            break;
    };
?>